package com.slliver;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@EnableDiscoveryClient // 作为eureka的客户端，必须使用客户端注解 @EnableEurekaClient只是eureka的客户端，而@EnableDiscoveryClient可以是eureka,nacos.zookpeer等的客户端发现
// 启动feignclients
@EnableFeignClients(basePackages = {"com.slliver.service"})
public class ProductFeignApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProductFeignApplication.class, args);
    }

}
